<?
error_reporting(E_ALL);
ini_set("display_errors", 1);


// Create image instances
$src = imagecreatefrompng("http://unwetterzentrale.spiegel.de/uwzkarten/nrwindex.png");

$dest2 = imagecreatetruecolor(420, 420);

// Copy
imagecopy($dest2, $src, 0, 0, 0, 0, 420, 420);


// Output and free from memory
header('Content-Type: image/jpeg');
imagejpeg($dest2, NULL, 15);

imagedestroy($dest);
imagedestroy($src);

?>